-- GENERATED SPELL FOR [Draenei Vindicator] --


function spell0_16996(pUnit, Event) --@Divine Shield,Self--
pUnit:FullCastSpellOnTarget(13874,pUnit)
pUnit:RegisterEvent('Sorts_16996', 8256, 1)
end

function spell1_16996(pUnit, Event) --@Hammer of Justice,n/a--
pUnit:FullCastSpellOnTarget(13005,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16996', 6294, 1)
end

function spell2_16996(pUnit, Event) --@Seal of Command,n/a--
pUnit:FullCastSpellOnTarget(20424,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16996', 580, 1)
end

function spell3_16996(pUnit, Event) --@Seal of Command,Self--
pUnit:FullCastSpellOnTarget(33127,pUnit)
pUnit:RegisterEvent('Sorts_16996', 30338, 1)
end

function Sorts_16996(pUnit, Event)
local choix_sorts_16996 = math.random(0, 3)
if choix_sorts_16996 == 0 then
pUnit:RegisterEvent('spell0_16996', 1, 1)
end
if choix_sorts_16996 == 1 then
pUnit:RegisterEvent('spell1_16996', 1, 1)
end
if choix_sorts_16996 == 2 then
pUnit:RegisterEvent('spell2_16996', 1, 1)
end
if choix_sorts_16996 == 3 then
pUnit:RegisterEvent('spell3_16996', 1, 1)
end
end

function mob16996_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_16996', math.random(1500, 3000), 1)
end

function mob16996_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16996_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16996_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(16996, 1, 'mob16996_Action')
RegisterUnitEvent(16996, 2, 'mob16996_Leave')
RegisterUnitEvent(16996, 3, 'mob16996_Kill')
RegisterUnitEvent(16996, 4, 'mob16996_Die')
